package com.qcby.shujia.demo.mapper;

import com.qcby.shujia.demo.entity.Tright;
import com.qcby.shujia.demo.entity.User;
import com.qcby.shujia.demo.entity.User_Role;
import com.qcby.shujia.demo.entity.vo.UserVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @className: TrightMapper
 * @description: TODO 类描述
 * @author: whz
 * @date: 2021/9/20
 **/
@Repository
public interface TrightMapper {
    //插入
    int insert(Tright tright);
    //根据id删除
    int deleteById(@Param("id") Integer id);
    //查找全部
    List<Tright> selectAll();
    //删除维护关系表
    void deleterr(@Param("id") Integer id);
    //更新信息
    int update(Tright tright);
}
